module.exports = app => {
    const mongoose = require('mongoose');
    mongoose.connect('mongodb://localhost/node-vue-moba', {
        useNewUrlParser: true,
        useUnifiedTopology: true
    })

    // 引用models下的所有文件
    require('require-all')(__dirname + '/../model')
};
